package com.test.pattern.state.before;

/**
 * @ClassName: ILift
 * @description: 电梯接口
 * @author: Mr du
 * @create: 2024-03-11 22:39
 */
public interface ILift {

    //定义4个电梯状态的常量
    int OPENING_STATE = 1;
    int CLOSEING_STATE = 2;
    int RUNING_STATE = 3;
    int STOPING_STATE = 4;

    //设置电梯状态的功能
    void setState(int state);

    //电梯操作的功能
    void open();

    void close();

    void run();

    void stop();
}
